# 99乘法表金字塔  = 99乘法表正序+88乘法表倒序

i = 1
while i <= 9:
    j = 1
    while j <= i:
        print('%d*%d=%-4d' % (i, j, (i*j)), end='')
        j += 1
    print()
    i += 1   #99乘法表正序

i1 = 8
while i1 >= 0:
    j1 = 1
    while j1 <= i1:
        print('%d*%d=%-4d' % (i1, j1, (i1*j1)), end='')
        j1 += 1
    i1 -= 1
    print()  #88乘法表倒序

